 <?php 

$username = $_GET['username'];

$password = $_GET['password'];

include("functions.php");


/*$res = isValidUser($username,$password);

if($res!=1) {

exit;

echo "0";

}*/
include("opendb.php");
$queryu = "select ID from Users where Username = '".$username."'";

$resultu = mysql_query($queryu) or die ("SQL Error".mysql_error());
$rowu=mysql_fetch_assoc($resultu);

include("opendb_crm.php");
$query1 = "select g.* from document_grps g where g.group_owner = '".$rowu['ID']."'";
$result1 = mysql_query($query1) or die ("SQL Error".mysql_error());
$xml = getXML($result1);

echo $xml;

?>